package com.cn.api; /**
 * @author: yihanyuan
 * @Description：
 * @Date: 2018/11/6 15:20
 */

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @program: broadmesseApi
 * @description:
 * @author: yihanyuan
 * @create: 2018-11-06 15:20
 **/
@SpringBootApplication
@EnableAutoConfiguration
@EnableSwagger2
@MapperScan(value="com.cn.api.dao")
public class Application extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(Application.class);
    }

    public static void main(String[] args) throws Exception {
        SpringApplication.run(Application.class, args);
    }
}
